﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ImportAssetInfoCtl.ascx.cs" Inherits="AMSInventoryWeb.UserControls.ImportAssetInfoCtl" %>
<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI"
    TagPrefix="PaginationGrid" %>
<table id="tblBaseInfo" bordercolor="#b0cde2" width="100%" align="center" border="1"
        runat="server">
        <tr>
            <td>
                数据源文件：
            </td>
            <td>
                <input id="fileSource" style="width: 414px; height: 22px" type="file" size="50" name="fileSource"
                    runat="server" contenteditable="false">
                <asp:Label ID="lblCheckSource" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                工作表名称：
            </td>
            <td>
                <asp:TextBox ID="txtSheetName" Width="344px" runat="server">sheet1</asp:TextBox><asp:RequiredFieldValidator
                    ID="checkSheetName" runat="server" ErrorMessage="请填写工作表名称" ControlToValidate="txtSheetName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>单计划最大资产量：</td>
            <td><asp:TextBox ID="txtMaxAssetAmount" runat="server" ReadOnly="true" ></asp:TextBox></td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnCheckData" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" runat="server" Text="校验数据" OnClick="btnCheckData_Click">
                </asp:Button>
                <asp:Button ID="btnImport" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" runat="server" Text="导入数据" CausesValidation="False"
                    Enabled="False" OnClick="btnImport_Click"></asp:Button>
            </td>
            <td align="right">
                <asp:Button ID="btnOutput" class="btn_mouseout" onmouseover="this.className= 'btn_mouseover ' "
                    onmouseout="this.className= 'btn_mouseout ' " onmousedown="this.className= 'btn_mousedown '"
                    onmouseup="this.className= 'btn_mouseup '" runat="server" Text="模板导出(带检验信息)"
                    Width="160" CausesValidation="False" Enabled="False" OnClick="btnOutput_Click">
                </asp:Button>
            </td>
        </tr>
         <tr>
            <td><asp:LinkButton runat="server" ID="lbGetImportorFile" 
                    onclick="lbGetImportorFile_Click">待盘资产选择模板</asp:LinkButton></td>
            <td>
                <asp:Label ID="lblMessage" runat="server" ForeColor="#C00000"></asp:Label>
            </td>
         </tr>
        <tr>
            <td colspan="2">
                <PaginationGrid:PaginationGrid ID="pgError" runat="server" AutoGenerateColumns="True"
                    InitPageSize="15" AutoSort="True">
                </PaginationGrid:PaginationGrid>
            </td>
        </tr>
    </table>
<asp:HiddenField ID="hdnPlanId" runat="server" />
